package com.haircut;


import com.modular.feign.custom.IEnableFeignClients;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.FullyQualifiedAnnotationBeanNameGenerator;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync
@IEnableFeignClients
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = {"com.haircut","com.modular"})
@MapperScan(basePackages = "com.haircut",annotationClass = Mapper.class)
public class HaircutApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(HaircutApplication.class);
        app.setBeanNameGenerator(new FullyQualifiedAnnotationBeanNameGenerator());
        app.run(args);
    }


}
